package org.tailor
/**
 * The Fabric entity.
 *
 * @author    
 *
 *
 */
class Fabric {
    static mapping = {
         table 'fabric'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id generator:'identity', column:'id'
    }
    Long id
    String description
    String fabricName
    String fabricPicture
    String fabricType
    java.math.BigDecimal price

    static constraints = {
        id(max: 9223372036854775807L)
        description(size: 1..255, blank: false)
        fabricName(size: 1..255, blank: false)
        fabricPicture(blank: false)
        fabricType(size: 1..255, blank: false)
        price()
    }
    String toString() {
        return "${fabricName}" 
    }
}
